package org.liubility.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author: Jdragon
 * @email: 1061917196@qq.com
 * @Date: 2020.09.03 22:37
 * @Description:
 */
@Data
@TableName("robot_post_order")
public class RobotPostOrder extends Model<RobotPostOrder> {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("`order`")
    private String order;

    private String url;

    private String param;

    //all or group or friend
    //0 or 1 or 2
    private int mode;

    //get or post
    //1 or 2
    private int request;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
